#include "SurveyParametersPanel.h"

SurveyParametersPanel::SurveyParametersPanel(wxWindow* parent)
                     : wxPanel(parent, wxID_ANY)
{
  m_pVertBoxSizer   = new wxBoxSizer(wxVERTICAL);
  m_pHorizBoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
  m_pHorizBoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
  m_pHorizBoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
  m_pHorizBoxSizer4 = new wxBoxSizer(wxHORIZONTAL);

  m_pStaticBox = new wxStaticBox(this, wxID_ANY, wxT(NULL_STRING));
  m_pStaticBoxSizer = new wxStaticBoxSizer(m_pStaticBox, wxVERTICAL);
  m_pPanelLabel = new wxStaticText(this, wxID_ANY, wxT(SURVEY_PANEL_LABEL));
  wxFont font = m_pPanelLabel->GetFont();
  font.SetPointSize(PANEL_LABEL_FONT_SIZE);
  font.SetWeight(wxFONTWEIGHT_BOLD);
  m_pPanelLabel->SetFont(font);
  m_pStaticBoxSizer->Add(m_pPanelLabel, wxSizerFlags().Center().Border(wxALL,BORDER_SIZE));

  m_pLabel1 = new wxStaticText(this, wxID_ANY, wxT(SURVEY_LABEL1));
  m_pHorizBoxSizer1->Add(m_pLabel1, wxSizerFlags(1).Expand().Left().Border(wxALL,BORDER_SIZE));
  m_pTextCtrl1 = new wxTextCtrl(this,wxID_ANY);
  m_pHorizBoxSizer1->Add(m_pTextCtrl1, wxSizerFlags(1).Expand().Right().Border(wxALL,BORDER_SIZE));

  m_pLabel2 = new wxStaticText(this, wxID_ANY, wxT(SURVEY_LABEL2));
  m_pHorizBoxSizer2->Add(m_pLabel2, wxSizerFlags(1).Expand().Left().Border(wxALL,BORDER_SIZE));
  m_pTextCtrl2 = new wxTextCtrl(this,wxID_ANY);
  m_pHorizBoxSizer2->Add(m_pTextCtrl2, wxSizerFlags(1).Expand().Right().Border(wxALL,BORDER_SIZE));

  m_pStaticBoxSizer->Add(m_pHorizBoxSizer1, wxSizerFlags(1).Expand().Left().Border(wxALL,BORDER_SIZE));
  m_pStaticBoxSizer->Add(m_pHorizBoxSizer2, wxSizerFlags(1).Expand().Left().Border(wxALL,BORDER_SIZE));
  m_pStaticBoxSizer->Add(m_pHorizBoxSizer3, wxSizerFlags(1).Expand().Left().Border(wxALL,BORDER_SIZE));
  m_pStaticBoxSizer->Add(m_pHorizBoxSizer4, wxSizerFlags(1).Expand().Left().Border(wxALL,BORDER_SIZE));

  m_pVertBoxSizer->Add(m_pStaticBoxSizer, wxSizerFlags(1).Expand().Border(wxALL,BORDER_SIZE));
  SetSizerAndFit(m_pVertBoxSizer);
}

SurveyParametersPanel::~SurveyParametersPanel()
{
}

BEGIN_EVENT_TABLE ( SurveyParametersPanel, wxPanel)

END_EVENT_TABLE()
